package com.leemz.design.chapter4.none;

import java.util.ArrayList;
import java.util.List;

public class Ch4Client {
    public static void main(String[] args) {
        LogFileOperateApi logApi= new LogFileOperate("");
        List<LogModel> models = new ArrayList<>();
        models.add(new LogModel("1", "leemz", "2021-12-14 12:00:00", "testLog"));
        models.add(new LogModel("2", "wussrc", "2021-12-14 13:28:00", "fileLog"));
        logApi.writeLogFile(models);

        List<LogModel> logModels = logApi.readLogFile();
        logModels.forEach(x -> System.out.println(x.getLogContent()));
    }
}
